export default{
    data() {
        return {
          w: 0, //table宽度
        }
      },
    
    methods:{
        $_calcTableW(){
            this.w=document.body.clientWidth-200
        },
    },

mounted(){
    this.$_calcTableW()
    window.addEventListener('resize',this.$_calcTableW)

},
beforeDestroy() {
    window.removeEventListener('resize', this.$_calcTableW)
  },

}